from django.urls import path, include
from rest_framework.routers import SimpleRouter
from . import views


router = SimpleRouter()
router.register("categories", views.CourseCategoryView, 'categories')
router.register("free", views.CourseView, "free")
router.register("chapters", views.ChapterViewSet, "chapters")
router.register("search", views.SearchCourseViewSet, "search")

urlpatterns = [
    path("", include(router.urls))
]
